package com.yanqu.road.logic.bussiness.cross;

import com.yanqu.road.entity.decoration.MammonRecord;
import com.yanqu.road.entity.rank.cross.CrossUserDecoration;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

/**
 * 跨服的跨地区财神
 */
public class CrossAreaMammonBussiness {

    public static void getCrossAreaUserMammonMap(Map<Long, Map<Long, Map<Integer, CrossUserDecoration>>> allCrossUserMammonMap,
                                                 Map<Integer, List<CrossUserDecoration>> crossGroupMammonMap) {
        DaoHelper.getCrossAreaMammonDaoImpl().getCrossUserMammonMap(allCrossUserMammonMap, crossGroupMammonMap);
    }

    public static boolean addCrossAreaUserDecoration(CrossUserDecoration crossUserDecoration) {
        return DaoHelper.getCrossAreaMammonDaoImpl().add(crossUserDecoration);
    }

    public static boolean updateCrossAreaUserDecoration(CrossUserDecoration crossUserDecoration) {
        return DaoHelper.getCrossAreaMammonDaoImpl().update(crossUserDecoration);
    }

    public static void getCrossAreaMammonRecordMap(Map<Long, Map<String, MammonRecord>> allCrossMammonRecordMap, Map<Integer, Map<String, MammonRecord>> crossGroupMammonRecordMap) {
        DaoHelper.getCrossAreaMammonRecordDaoImpl().getCrossMammonRecordMap(allCrossMammonRecordMap, crossGroupMammonRecordMap);
    }

    public static boolean addAreaMammonRecord(MammonRecord mammonRecord) {
        return DaoHelper.getCrossAreaMammonRecordDaoImpl().add(mammonRecord);
    }

    public static boolean updateAreaMammonRecord(MammonRecord mammonRecord) {
        return DaoHelper.getCrossAreaMammonRecordDaoImpl().update(mammonRecord);
    }

}
